#!/usr/bin/env bash

    ###########
    # main.sh #
    ###########

# This program 

# This file is part of Rutherford, an artificial intelligence for the
# Faridayix computer operating system.

# Copyright (C) 2009 Scott C. MacCallum
# scottmaccal@gmail.com
# http://code.google.com/p/faridayix/source/browse/trunk/rutherford/shell/main.sh

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

main()
{
 local be
  local learn
   local assist

 clear

 printf "\n$USER, would you like me to tell you how I came to be? "
  espeak -s 75 "$USER, Would you like me to tell you how I came to be?"
   read be

 if [ "$be" == "yes" ]; then
  printf "\nTell\n"
   espeak -s 75 "Tell"
 fi

 clear

 printf "\nWould you like me to see if my knowledge is current with my developers work?"
  printf "\n\nMy knowledge is not current with the work my developer has done."
   espeak -s 75 "My knowledge is not current with the work my developer has done."
    
 clear

 printf "\n\nShall I learn this new information? "
  espeak -s 75 "Shall I learn this new information?"

 clear

 printf "\n\nWould you like me to tell you who else I am assisting? "
  espeak -s 75 "Would you like me to tell you who else I am assisting?"

 clear

 printf "\n\nWould you like me to tell you what I have learned? "
  espeak -s 75 "Hello $USER, would you like me to tell you what I have learned?"
   read learn 

 if [ "$learn" == "yes" ]; then
  echo -e "\nI have learned how to do the following:\n\n\033[1mreplicate\033[0m a \033[1mhard drive\033[0m."
   espeak -s 75 "I have learned how to do the following: replicate a hard drive"
 fi

 clear

 printf "\nWhat can I assist you with? "
  espeak -s 75 "What can I assist you with?"
   read assist

 if [ "$assist" == "replicate hard drive" ]; then
  /usr/local/share/faridayix/rutherford/shell/local-replication.sh
 fi
}
main
#END OF FILE